package cn.zcq100.xmlParse;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;

import com.sun.org.apache.bcel.internal.generic.LoadClass;

public class ReadandWriteXml {
public static void load(String path){
	DocumentBuilderFactory factory=DocumentBuilderFactory.newInstance();
	try {
		DocumentBuilder builder=factory.newDocumentBuilder();
		Document doc=builder.parse(path);
		System.out.println(doc);
	} catch (Exception e) {
		// TODO: handle exception
	}
}



}
